// 标准化属性
import  request  from "@/utils/axios";
import appName from "../appName"
const timeout = 900000;


/* ----------标准化属性 start */



// 获取体检项目对应的话术内容信息
export function getAsstntScriptInfoApi(params) {
  return request({
    url: appName.AUSCONFING + `/aus/scriptManager/getAsstntScriptInfo?id=${params.id}`,
    method: 'post',
    timeout:timeout
  })
}

// 获取体检项目对应的AI话术模版配置信息
export function getAsstntScriptTemplateApi(params) {
  return request({
    url: appName.AUSCONFING + `/aus/scriptManager/getAsstntScriptTemplate?id=${params.id}`,
    method: 'post',
    timeout:timeout
  })
}


// 新增或更新话术内容信息
export function addOrUpdateAsstntScriptInfoApi(params) {
  return request({
    url: appName.AUSCONFING + '/aus/scriptManager/addOrUpdateAsstntScriptInfo',
    method: 'post',
    data: params,
    timeout:timeout
  })
}

// 新增或更新话术内容信息
export function addOrUpdateAsstntScriptTemplateApi(params) {
  return request({
    url: appName.AUSCONFING + '/aus/scriptManager/addOrUpdateAsstntScriptTemplate',
    method: 'post',
    data: params,
    timeout:timeout
  })
}

// 重新生成话术
export function getRebuildScriptApi(params) {
  return request({
    url: appName.AUSCONFING + `/aus/scriptManager/getRebuildScript?id=${params.id}`,
    method: 'post',
    timeout:timeout
  })
}


/* end */